import { createApp } from "vue";
import { createPinia } from "pinia";
import { useUserStore } from "../store";
import * as locationService from "../service/location";
import Taro from "@tarojs/taro";

const App = createApp({
  mounted() {},
  onLaunch() {
    // const isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
    // if (isIOS) {
    //   window.history.pushState({}, "title", "#");
    // }
    locationService.getLocation();
  },
  onShow() {},
  onHide() {},
});

App.use(createPinia());
export default App;
